<!--关于bootstrap富文本编辑器的专用脚本 before-->
<!--此脚本引用包括下面的原始脚本其实都已经放到_bootstrap_editor_script.html.erb中-->
<%= render partial: 'bootstrap_editor_script' %>
<!--关于bootstrap富文本编辑器的专用脚本 after-->

<h4 class="header green clearfix">

  <span class="block pull-right">
										<small class="grey middle">Choose style: &nbsp;</small>

										<span class="btn-toolbar inline middle no-margin">
											<span data-toggle="buttons" class="btn-group no-margin">
												<label class="btn btn-sm btn-yellow">
                                                  1
                                                  <input type="radio" value="1" />
                                                </label>

												<label class="btn btn-sm btn-yellow active">
                                                  2
                                                  <input type="radio" value="2" />
                                                </label>

												<label class="btn btn-sm btn-yellow">
                                                  3
                                                  <input type="radio" value="3" />
                                                </label>
											</span>
										</span>
									</span>
</h4>

<style type="text/css">
#editor1{
    max-height: 2000px;
    height: 500px;
}
        .cus{
            width: 800px;
        margin: auto auto;
        }
  .cus input{
      border-left: none;
      border-right-style: none;
  }
</style>


    <div class="input-group input-group-lg cus">
      <!--<span class="input-group-addon" id="sizing-addon1">标题：</span>-->
      <!--<input type="text" class="form-control" placeholder="请输入标题" aria-describedby="sizing-addon1">-->

      <%= text_field :post, :title, class: "form-control", placeholder: "请输入标题" %>
    </div>

    <br/>
    <div class="wysiwyg-editor" id="editor1">请输入字符...</div>

    <!--<textarea id="editor-value" hidden="hidden"></textarea>-->
    <%= text_area :post, :content, hidden: :hidden %>









<div class="hr hr-double dotted"></div>
<script type="text/javascript">
    var $path_assets = "assets";//this will be used in loading jQuery UI if needed!
</script>
